package com.example.serviciocliente2;

import java.util.Calendar;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

import com.example.servicioservidor.IMiRemoto;

public class servicioPortada extends Service {
	
	
	public void onCreate() {
		super.onCreate();
	}


	public void onDestroy() {
		super.onDestroy();
	}
	
	
	IMiRemoto.Stub myStub = new IMiRemoto.Stub() {

		public String getResultado() throws RemoteException {
			return Calendar.getInstance().getTimeInMillis() + "";
		}

		public String setRetonar() throws RemoteException {	
			return Calendar.getInstance().getTimeInMillis() + " CREADO PORTADA ";
		}

	};

	@Override
	public IBinder onBind(Intent intent) {
		// TODO Auto-generated method stub
		return myStub;
	}

}
